/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.sequence.ui.properties.tabbed.sectionfilter;

import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import com.cea.papyrus.diagram.sequence.sedi.edit.AbstractLinkEditPart;
import com.cea.papyrus.diagram.sequence.sedi.edit.SeDiSubpartEditPart;
import com.cea.papyrus.tabbedproperties.section.UMLElementFilter;

/**
 * 
 */
public class AppearenceSectionFilter extends UMLElementFilter {

    /**
     * @param object
     * @return
     */
    @Override
    public boolean select(Object object) {

        if (!(object instanceof AbstractGraphicalEditPart) || !super.select(object)) {
            return false;
        }

        if ((object instanceof SeDiSubpartEditPart<?>)
        		|| (object instanceof AbstractLinkEditPart<?>)) {
        	return true;
        }
        
        return false;
        
    }

}
